/**
 * @author FengLei.You
 */
function Layer(opt){
	this.top=opt.top;
	this.left=opt.left;
	this.width=opt.width;
	this.height=opt.height;
	this.visible=opt.visible;
}
Layer.prototype.setPosition=function(top,left){
	this.top=top;
	this.left=left;
}
Layer.prototype.getTop=function(){
	return this.top;
}
Layer.prototype.getLeft=function(){
	return this.left;
}
Layer.prototype.getWidth=function(){
	return this.width;
}
Layer.prototype.getHeight=function(){
	return this.height;
}
Layer.prototype.isVisible=function(){
	return this.visible;
}
Layer.prototype.setVisible=function(visible){
	this.visible=visible;
}
Layer.prototype.move=function(dtop,dleft){
	this.top+=dtop;
	this.left+=dleft;
}
Layer.prototype.paint=function(context){
	
}
